<?php
/**
 * Created by PhpStorm.
 * User: STICKYQU
 * Date: 2016/7/7
 * Time: 17:11
 */



use app\models\Configs;

require '../bootstrap.php';
require '../models/Configs.php';


$configs = Configs::getAllConfig();
if(! empty($configs) ){
    echo json_encode(array('code' => 0, 'data' => $configs));
}else{
    //登录失败
    echo json_encode(array('code' => -1));
}
